import React from 'react';
import { Button } from 'antd';

interface ThemeToggleProps {
  onThemeChange: () => void;
  isLightTheme: boolean;
}

/**
 * 主题切换组件
 * 用于在明亮主题和暗黑主题之间切换
 */
const ThemeToggle: React.FC<ThemeToggleProps> = ({ onThemeChange, isLightTheme }) => {
  return (
    <Button 
      color="primary" 
      variant="outlined"
      onClick={onThemeChange}
    >
      {isLightTheme ? '切换深色' : '切换主题'}
    </Button>
  );
};

export default ThemeToggle;